<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<html lang="zh-CN"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
	<script type="text/javascript" src="js/jquery.js"></script>
	<style type="text/css">
		p {
			height:21px;
			overflow:hidden;
		}
	
	</style>
</head>
<body class="body">&nbsp; 
	<%@ include file="include/head.jsp"%>
	<div class="container">
	  <div class="row">
		<div class="span3">
			<div style="padding: 8px 0;" class="well">
				<jsp:include page="include/nav.jsp">
					<jsp:param value="${ep}" name="ep"/>
				</jsp:include>
			</div>
		</div>
		
		<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="#"><i class="icon-folder-open"></i>资料</a>
				</li>
				<li class="pull-right"><i class="icon-plus"></i><a href="document.jspx?_m=shore" class="link-black">分享新资料</a></li>
			</ul>
				
			<div class="wall" style="margin-bottom:20px;">
				
					
			<c:if test="${fn:length(documentlist) == 0}">
				<blockquote>
					 <h4>暂时没有资料</h4>
				</blockquote>
			</c:if>
				
			<c:forEach items="${documentlist}" var = "document">
				<blockquote>
				
				 
				  <h4><a href="document.jspx?_m=show&id=${document.id}">${document.title}</a></h4>
				  <p style="font-size:14px;line-height:1.5;">${document.content}</p>
				  <small>${document.employee.username}发表与${document.createtime}</small>
				  <a href="document.jspx?_m=save&id=${document.id}" title="编辑"><i class="icon-pencil"></i></a>
				  <a href="document.jspx?_m=delete&id=${document.id}" title="删除"><i class="icon-trash"></i></a>
				</blockquote>
			 </c:forEach>	
				
				<jsp:include page="include/pager.jsp">
					<jsp:param value="${pager}" name="pager"/>
					<jsp:param value="document.jspx" name="jspx"/>
				</jsp:include>
				<div class="clear"></div>
			</div>
		</div>
	  </div>
	</div>

</body></html>
